package com.shuqi.model;

import android.content.Context;

import com.shuqi.database.model.UserInfo;
import com.shuqi.model.manager.MyAccountManager;

/**
 * 书架数据
 * 
 * @author Jianda.Yang
 * 
 * @Date 2014-1-18 下午3:34:17
 */
public class BookShelfModel extends ModelBase {

    private Context mContext;

    public BookShelfModel(Context context) {
        mContext = context;
        userInfo = MyAccountManager.getInstance(mContext);
    }

    private UserInfo userInfo;

    @Override
    public void loadData(Object... objs) {
//        Log4an.d("yjd", "数据层userInfo.getUserId()=" + userInfo.getUserId());
//        List<BookMarkInfo> liMarkInfos =
//                BookMarkHelper.getBookMarkList(mContext, userInfo.getUserId());
//        Log4an.d("yjd", "数据层liMarkInfos is null=" + (liMarkInfos == null ? true : false)
//                + "liMarkInfos.size()=" + liMarkInfos.size());
//        if (liMarkInfos != null && liMarkInfos.size() > 0) {
//            fireEvent(EventTypeConstants.EVENT_SUCCESS, liMarkInfos);
//        } else {
//            fireEvent(EventTypeConstants.EVENT_EXC_NETERR, liMarkInfos);
//        }
    }

    @Override
    public void onDestroy() {

    }

}
